Ext.define('AM.view.user.List', {
	extend : 'Ext.grid.Panel',
	alias : 'widget.userlist',
	title : 'All Users',
	store : 'Users',
	width : 500,
	tbar : [ {
		xtype : 'button',
		text : '添加',
		iconCls : 'add',
		overCls:'back',
		layout : 'auto',
		action:'add',
		name:'add'
	} ,
	 {
		xtype : 'button',
		text : '删除',
		iconCls : 'delete',
		overCls:'back',
		layout : 'auto',
		action:'delete',
		name:'delete'
	}],
	lbar : [ {
        xtype: 'image',
//      cls: 'widget-top-container-first-img',
        height: 100,
        width: 100,
        alt: 'profile-image',
        src: 'static/images/flash/1_1.jpg'
    } ],
	initComponent : function() {
		this.columns = [ {
			header : 'ID',
			dataIndex : 'id',
			flex : 1
		}, {
			header : 'Name',
			dataIndex : 'name',
			flex : 1
		}, {
			header : 'Email',
			dataIndex : 'email',
			flex : 1
		} ];
		this.callParent();
	}
});